package com.yy.studymybatisplus.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yy.studymybatisplus.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface UserMapper extends BaseMapper<User> {

    /**
     * 根据id查询map信息
     * @param id
     * @return
     */
    Map<String,Object> selectMapById(Long id);
    Page<User> selectPageVo(@Param("page") Page<User> page,@Param("age") Integer age);

}
